<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-11-26
 * Time: 13:56
 */

namespace app\admin\controller;


use app\common\controller\AdminBase;
use \app\common\model\Feedbackm;

class Feedback extends AdminBase
{

    /**
     * 用户列表
     * @param int    $page
     * @return mixed
     */
    public function index($page = 1)
    {
        $list = Feedbackm::feedbackList($page);
        return $this->fetch('index', ['list' => $list]);
    }

    /**
     * 反馈详情
     */
    public function detail($id)
    {
        $detail = Feedbackm::detail($id);
        return $this->fetch('detail', ['detail' => $detail]);
    }
}